package com.xja.friend.service;

import com.xja.friend.entity.Message;
import org.apache.ibatis.annotations.Param;

import javax.websocket.server.PathParam;
import java.util.List;

public interface MessageService {

    int insert(Message record)throws  Exception;

    Message selectByPrimaryKey(String id)throws  Exception;

    int updateByPrimaryKey(Message record)throws  Exception;

    Message selectbyFromid(Integer fromid)throws  Exception;

    //查询互动信息
    List<Message> findHDXinXi(@Param("fromid") Integer fromid , @Param("toid") Integer toid)throws  Exception;
}
